package com.liss.concurrency;

/**
 * @author lisensen
 * @date 2024/9/13
 */
public class _4_14Thread {
    // 加锁当前线程对象
    public final synchronized void join() throws InterruptedException {
        // 条件不满足，继续等待
        while (isAlive()) {
            wait(0);
        }
        // 条件符合，方法返回
    }

    private boolean isAlive() {
        return false;
    }
}
